package com.ruoyi.jl_bg.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * wbs清单变更明细业务对象 jl_bg_ba_bg_detail
 *
 * @author zyb
 * @date 2024-12-23
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class JlBgBaBgDetailBo extends BaseEntity {

    /**
     * 变更主表主键
     */
    @NotNull(message = "变更主表主键不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long bgId;

    /**
     * 主键
     */
    private Long detailId;

    /**
     * wbs_id(工程部位)
     */
    private Long wbsId;

    /**
     * 变更前wbs清单数量
     */
    @NotNull(message = "变更前wbs清单数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal bgqWbsSheetNum;

    /**
     * 变更后wbs清单数量
     */
    @NotNull(message = "变更后wbs清单数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal bghWbsSheetNum;

    /**
     * 数量变化(变更后wbs清单数量-变更前wbs清单数量)
     */
    @NotNull(message = "数量变化(变更后wbs清单数量-变更前wbs清单数量)不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal bgNumBg;

    /**
     * 变更金额
     */
    @NotNull(message = "变更金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal bgMoney;

    /**
     * 0数量变更 1新增wbs不增子目 2新增子目
     */
    @NotNull(message = "0数量变更 1新增wbs不增子目 2新增子目不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer bgMode;

    /**
     * 是否允许修改flag
     */
    private Integer updateFlag;


}
